package com.ruoyi.cderp.mapper;

import java.util.List;
import com.ruoyi.cderp.domain.CustomerSettleFeeSheet;
import com.ruoyi.cderp.domain.CustomerSettleFeeSheetDetail;
import com.ruoyi.cderp.domain.SettleFeeSheetDetail;

/**
 * 客户费用单Mapper接口
 *
 * @author ruoyi
 * @date 2025-03-11
 */
public interface CustomerSettleFeeSheetMapper
{
    /**
     * 查询客户费用单
     *
     * @param id 客户费用单主键
     * @return 客户费用单
     */
    public CustomerSettleFeeSheet selectCustomerSettleFeeSheetById(String id);

    /**
     * 查询客户费用单列表
     *
     * @param customerSettleFeeSheet 客户费用单
     * @return 客户费用单集合
     */
    public List<CustomerSettleFeeSheet> selectCustomerSettleFeeSheetList(CustomerSettleFeeSheet customerSettleFeeSheet);

    /**
     * 新增客户费用单
     *
     * @param customerSettleFeeSheet 客户费用单
     * @return 结果
     */
    public int insertCustomerSettleFeeSheet(CustomerSettleFeeSheet customerSettleFeeSheet);

    /**
     * 修改客户费用单
     *
     * @param customerSettleFeeSheet 客户费用单
     * @return 结果
     */
    public int updateCustomerSettleFeeSheet(CustomerSettleFeeSheet customerSettleFeeSheet);

    /**
     * 删除客户费用单
     *
     * @param id 客户费用单主键
     * @return 结果
     */
    public int deleteCustomerSettleFeeSheetById(String id);

    /**
     * 批量删除客户费用单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCustomerSettleFeeSheetByIds(String[] ids);

    /**
     * 批量删除客户费用单明细
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCustomerSettleFeeSheetDetailBySheetIds(String[] ids);

    /**
     * 批量新增客户费用单明细
     *
     * @param customerSettleFeeSheetDetailList 客户费用单明细列表
     * @return 结果
     */
    public int batchCustomerSettleFeeSheetDetail(List<CustomerSettleFeeSheetDetail> customerSettleFeeSheetDetailList);


    /**
     * 通过客户费用单主键删除客户费用单明细信息
     *
     * @param id 客户费用单ID
     * @return 结果
     */
    public int deleteCustomerSettleFeeSheetDetailBySheetId(String id);


    //查询项目收款信息
    List<CustomerSettleFeeSheetDetail> selectFeeSheetDetailIn(String id);


    //查询项目付款信息
    List<CustomerSettleFeeSheetDetail> selectFeeSheetDetailOut(String id);
}
